<?php
$choices = $field->getWidget()->getChoices();

include_partial('homepage/customdropdown', 
		array(
			'choices' => $choices,
			'input' => array(
				'class' => isset($class) ? $class : '',
				'label' => $field->getValue() ? $choices[$field->getValue()] : $field->renderLabel(),
				'plugin_input_id' => $field->renderId(),
				'input_id' => __($field->renderName()),
				'name' => $field->renderName(),
				'value' => $field->getValue())
			)
)
?>
<script type="text/javascript">
    $('#<?php echo $field->renderId() ?>').click(function(e){
	$(this).autocomplete( "search", ""  );
    });
</script>